package com.xuexi.api;

import com.xuexi.easygo.pojo.LoginLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "easygo-admin-service")
public interface LoginLogClient {

        //新增日志
    @RequestMapping("loginLog_add")
    int addLoginLog(@RequestBody LoginLog log);

    /*
    * 查询我的登录日志
    * */
    @RequestMapping("/loginLog_logs")
    public List<LoginLog> getMyLoginLogs(@RequestParam(value = "username") String username);
}
